<volist name="list" id="vo">
    //格式化{$vo.title}<php>echo "\r\n";</php>
    function format_{$vo.code|strtolower}(val){
        var data = {:json_encode($vo['map'])};
        if(typeof val == 'undefined' || val == null || val == '') return '';
        var vals = (val+'').split(',');
        var str = '';
        for(var i=0;i<vals.length;i++){
            str += ',' +data[vals[i]];
        }
        return str.substring(1);
    }<php>echo "\r\n";</php>
</volist>
